package abs;

public abstract class AbstractAnimal {
    private String name;
    private Integer age;

    public abstract void eat();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    private static final String SEX = "男";

    public AbstractAnimal() {
    }

    public AbstractAnimal(String name) {
        this.name = name;
    }

    public abstract void run();

    public void sleep() {

    }
}
